<template>
    <div>
      <el-table

        border="true"
        align="left"
        :data="PushDetails"
        style="width: 100%"
        :default-sort = "{prop: 'date', order: 'descending'}"
      >
        <el-table-column

          prop="Work"
          label="作业名称"
          sortable
        >
        </el-table-column>

        <el-table-column

          prop="PushName"
          label="发布人"
          sortable
        >
        </el-table-column>

        <el-table-column
          prop="PushTime"
          label="发布时间"
          sortable
        >
        </el-table-column>
        <el-table-column
          label="操作"
        >
          <template slot-scope="scope" >

            <el-button type="text" size="small" >详情</el-button>

          </template>
        </el-table-column>
      </el-table>
    </div>
</template>
<style>

</style>
<script>

    export default{
        data(){
            return{
              PushDetails:[{
                Work:'Javascript语法',
                PushName:'周璇',
                PushTime:'2017.12.21',
              },
                {
                  Work:'Javascript属性',
                  PushName:'周璇',
                  PushTime:'2017.12.22',
                },
              ]
            }
        },
      methods:{

      }

    }
</script>
